package demo09;

public class Test09 {
    public static void main1(String[] args) {
        Person person1 = new Person("123");
        Person person2 = new Person("123");

        boolean flag = person1.equals(person2);
        System.out.println(flag);
        System.out.println(person1==person2);
    }

    public static void main(String[] args) {
        Person person1 = new Person("123");
        Person person2 = new Person("123");
        System.out.println(person1.hashCode());
        System.out.println(person2.hashCode());
    }
}
